<template>
    <textarea-alert p-title='拒绝此客商信息录入员' p-label='原因'  :p-word-count="100" :p-submit='submitChange'></textarea-alert>
</template>
<script>
    import serWorkerWrite from '../../serves/api-worker-write'
    export default{
        data(){
            return{
                
            }
        },
        methods:{
            handleOpen(data){
                this.$children&&this.$children[0].handleOpen(data);
            },
            async submitChange(data){
                const res =await serWorkerWrite.setInject({
                    id:data.id,
                    result_comment:data.content,
                });
                if(res.code==1){
                    this.$emit('on-change',true);
                    this.$Message.success(res.message);
                    return true;
                }else{
                    this.$Message.error(res.message);
                    return false;
                }
            }
        },
        components:{
        }
    }
</script>